home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5328 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.spies.com!usenet
  2. From: Erik Max Francis <max@alcyone.com>
  3. Newsgroups: comp.object,comp.lang.c++,comp.ai.alife,sci.comp-aided
  4. Subject: Re: [Q] Growing Objects
  5. Date: Sat, 03 Feb 1996 12:39:13 -0800
  6. Organization: &tSftDotIotE
  7. Message-ID: <3113C7F1.5A1774AB@alcyone.com>
  8. References: <30FE8297.41C6@bme.jhu.edu> <RMARTIN.96Jan20093428@rcm.oma.com> <4ef3bo$mjo@news.jhu.edu> <310C2EE2.8171C34@alcyone.com> <4evbei$55v@news.jhu.edu>
  9. NNTP-Posting-Host: newton.alcyone.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (X11; I; Linux 1.2.8 i486)
  14.  
  15. Harold Bien wrote:
  16.  
  17. >         I understand the utility of abstract/virtual classes, but my
  18. > problem is that the classes are held in a container class.  If I were to
  19. > morph a class, I must somehow squeeze it into the same space as the
  20. > former class in order for the container class (which holds pointers) to
  21. > maintain a valid pointer to the class.
  22.  
  23. I'm not sure I understand your objection; a container designed to hold pointers
  24. to a class can also hold pointers to derived classes as well.  If you're using
  25. a pointer to the class in the container class, it shouldn't matter how large or
  26. small the class (or derived class) is, since you're just maintaining a pointer
  27. to it, not a local copy.
  28.  
  29. Or am I completely misunderstanding you?
  30.  
  31. -- 
  32. Erik Max Francis, &tSftDotIotE. && max@alcyone.darkside.com || max@alcyone.com
  33. San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
  34. H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
  35. Omnia quia sunt, lumina sunt. && GIGO Omega Psi && http://www.alcyone.com/max/
  36. "Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_
  37.